<%@ page import="java.util.Map" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.HashMap" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/10/20
  Time: 9:53
  To change this template use File | Settings | File Templates.
--%>

<%@page isELIgnored="false" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--EL表达式获取值--%>
    <%
        List<Map<String,String>> lists = new ArrayList<>();

        Map<String,String> hm = new HashMap<>();

        hm.put("name","jack");
        hm.put("age","123");

        lists.add(hm);
        request.setAttribute("hm",hm);
        request.setAttribute("lists",lists);
    %>

    ${lists}<br>
    ${hm}<br>
    ${lists[0].name}<br>
    ${lists[0].age}<br>
</body>
</html>
